extends Component
var _player:CharacterBody2D
@export_range(0,3,1) var life:int=3:set=set_life
func set_life(l:int)->void:
	life=clamp(l,0,3)
	Global.player_life=life
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	_player=host
	Global.set_player_life.connect(set_life)
	pass # Replace with function body.

func _enable()->void:
	pass
	
func _disable()->void:
	pass
